package utils;

public class IntStrPair implements Comparable<IntStrPair> {
    public final int x;
    public final String s;
    public IntStrPair(int x, String s) {
        this.x = x;
        this.s = s;
    }
    public int compareTo(IntStrPair a) {
        if (x != a.x) return x < a.x ? 1 : x > a.x ? -1 : 0;
        return s.compareTo(a.s);
    }
}
